use chrono::NaiveDateTime;
use rocket::serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(crate = "rocket::serde")]
#[derive(sqlx::FromRow)]
pub struct UserEntity {
    id: i64,
    username: String,
    password: String,
    age: i32,
    create_user: String,
    create_name: String,
    #[serde(with = "crate::ctx::date_util")]
    create_time: NaiveDateTime,
    modify_user: String,
    modify_name: String,
    #[serde(with = "crate::ctx::date_util")]
    modify_time: NaiveDateTime,
    delete_flag: i32,

}